package com.maple.webrtc.app;

import android.app.Application;

import org.webrtc.PeerConnectionFactory;


public class MyApplication extends Application {

    private static MyApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        PeerConnectionFactory.initialize(
                PeerConnectionFactory.InitializationOptions
                        .builder(this)
                        .setEnableInternalTracer(true)// 启用内部追踪器，用来记录一些相关数据
                        .createInitializationOptions()
        );
    }


    public static MyApplication getInstance() {
        return instance;
    }
}
